cmake_minimum_required(VERSION 3.29)
project(planning_process)

# 设置依赖
set(DEPENDS
  "rclcpp"
  "tf2"
  "tf2_ros"
  "nav_msgs"
  "main_interfaces"
)

# 添加节点
add_executable(planning_node
  ${CMAKE_CURRENT_SOURCE_DIR}/planning_node.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/planning_process.cpp
)

set(target
  planning_node
)

# 添加依赖
ament_target_dependencies(${target}
  ${DEPENDS}
)

# 精确指定依赖的库
# target_link_libraries(${target}

# )

# 安装动态库、节点和相关目录
install(TARGETS
  ${target}
  DESTINATION lib/${PLANNING_PACKAGE_NAME}
)
